package com.four.marketing.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.four.marketing.entity.Bargain;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.four.marketing.vo.BargainVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 侯新伟
 * @since 2021-12-14
 */
public interface BargainDao extends BaseMapper<Bargain> {

   IPage<Bargain> getList(Page<Bargain> bargainPage);

   IPage<Bargain> getPage(Page<Bargain> goodsVoPage, @Param("vo") BargainVo bargainVo);

   void saveBargain(@Param("bargain") Bargain bargain);

   void updateBargain(@Param("bargain") Bargain bargain);
}
